<#include "admin/include/header.ftl" >
  <body>
   <#include  "admin/include/nav.ftl">
<div class="container-fluid" id="content">
        <div id="left">
        	<#include "admin/include/left_menu.ftl">
		</div>
		<div id="right">
			<div class="main">
				<iframe frameborder="0" id="mainFrame" name="mainFrame" src="about:blank" style="background: url('public/static/admin/images/loading.gif') center no-repeat"></iframe>	
			</div>
		</div>
</div>

<script>
var load_first=false;
$(function () {
       // $('.admin_left_menus').metisMenu();
        $(".main-nav li").first().children().trigger("click");
});
function traggleMenu(obj){
	var that=$(obj);
	var url=that.attr('url');
	var id=$(obj).attr('rel');
	$('.main-nav').children().each(function(){
			$(this).removeClass('active');
	});
	$(obj).parent().addClass('active');
	var left_menu_array=$('.admin_left_menus');
	left_menu_array.each(function(){
			$(this).css('display','none');
	});
	$('#admin_left_menu_'+id).css('display','block');
	if(url!=""){
		//拉取URL内容填充到menu_容器
		$.ajax({
		   type: "get",
		   url: url,
		   dataType: "html",
		   success: function(response_data){
		     $('#admin_left_menu_'+id).html(response_data);
		   }
		});
	}
}
</script>
</body>
</html>